<div class="bjui-pageContent">
    <form action="{:U('goodsStock')}" class="pageForm" data-toggle="validate" method="post">
        <table class="table table-condensed table-hover" data-width="100%">
            <tbody>
            <tr>
                <th align="center">排序</th>
                <th align="center">颜色</th>
                <th align="center">规格</th>
                <th align="center">条码</th>
                <th align="center">库存数量</th>
            </tr>
            <?php foreach($oldBarList as $key=>$oldBar):?>
            <tr>
                <td><input type="text" name="oldBarList[{$key}][sort]" value="{$oldBar['sort']}" readonly="true"
                           size="5"></td>
                <td><input type="text" name="oldBarList[{$key}][color_name]" value="{$oldBar['color_name']}"
                           readonly="true" size="10"></td>
                <td><input type="text" name="oldBarList[{$key}][spec_name]" value="{$oldBar['spec_name']}"
                           readonly="true" size="10"></td>
                <td><input type="text" name="oldBarList[{$key}][bar_code]" value="{$oldBar['bar_code']}"
                           readonly="true" size="25"></td>
                <td><input type="text" name="oldBarList[{$key}][number]" id="j_custom_total" value="{$oldBar['number']}"
                           data-toggle="spinner" data-min="{$oldBar['number']}" data-step="1" data-rule="integer"
                           size="5"></td>
                <input type="hidden" name="oldBarList[{$key}][id]" value="{$oldBar['id']}" readonly="true">
            </tr>
            <?php endforeach;?>
            <input type="hidden" name="goods_id" value="{$goods_id}" readonly="true">
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close">关闭</button>
        </li>
        <li>
            <button type="submit" class="btn-default">保存</button>
        </li>
    </ul>
</div>